package cn.lixu.feign;

import cn.lixu.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author LiXu
 * @date 2022/08/23 0023 11:06:27
 */

@FeignClient(value = "user-service", fallbackFactory = OpenFeighFallBack.class)
public interface UserFeignClient {

    @GetMapping("/user/getById/{id}")
    User getById(@PathVariable("id") Long id);
}
